package com.df.bpm.service.impl;

import com.df.common.utils.MyQueryWrapper4Like;
import com.df.common.service.impl.BaseServiceImpl;
import com.df.bpm.dto.BusinessInformationDTO4Search;
import com.df.bpm.mapper.BusinessInformationDTO4SearchMapper;
import com.df.bpm.service.BusinessInformationDTO4SearchService;

import com.df.common.utils.CommonUtils;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class BusinessInformationDTO4SearchServiceImpl extends BaseServiceImpl<BusinessInformationDTO4SearchMapper,BusinessInformationDTO4Search> implements BusinessInformationDTO4SearchService {
	public final BusinessInformationDTO4SearchMapper businessInformationDTO4SearchMapper;

	public List<BusinessInformationDTO4Search> getList4Like(BusinessInformationDTO4Search temp) {
		if(CommonUtils.varIsBlank(temp)){
			return null;
		}
		MyQueryWrapper4Like<BusinessInformationDTO4Search> wrapper=new MyQueryWrapper4Like<>(temp);
		return businessInformationDTO4SearchMapper.selectList(wrapper.stringLike(temp));
	}
}